﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Sprout.Core.Dtos
{
    /// <summary>
    /// 树形结构父级
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BaseTree<T>
        where T : BaseTree<T>
    {
        /// <summary>
        /// ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 是否展开
        /// </summary>
        public bool Spread { get; set; }
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool Checked { get; set; }
        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool Disabled { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 子节点
        /// </summary>
        public IList<T> Children { get; set; }
    }
}
